<script type="text/javascript" src="functions/js/usersVoice.js"></script>
<a href="#"><img id="topArrow" src="img/topArrow.png"
	style="border: none; display: none; position: fixed; right: 10px; top: 10px; width: 50px;" />
</a>
<div class="cuerpoContainer" id="cuerpoContainer">
	<?php
		include_once("frontend/carrousel.php");
	?>
	<link rel="stylesheet"
		href="lib/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.css" />
	<script type="text/javascript"
		src="lib/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js"></script>
	<script src="lib/touch-punch-master/jquery.ui.touch-punch.min.js"></script>
	<script type="text/javascript" src="functions/js/acordeon.js"></script>
	<script type="text/javascript" src="functions/js/sortable.js"></script>
	<script type="text/javascript" src="functions/js/draggable.js"></script>
	<div class="cuerpo">
		<div class="leftContainer" id="leftContainer" style="position:fixed; width:440px">
		<?php
		require 'vendor/autoload.php';


		$firstNews = $_GET["firstNews"];

		
		$printer = ApplicationContext::getServices('printer');
		$newsManager = ApplicationContext::getServices('newsManager');
		$news = $newsManager->getNewsById($firstNews);
		$printer->printNews($news);
		?>
		</div>
		<div class="rightContainer" id="rightContainer">
		<?php
		require 'vendor/autoload.php';
		$searcher = ApplicationContext::getServices('searcher');

		$keyword = $_GET["keyword"];
		

		$news = $searcher->search($keyword, $_GET['ordenamiento']);
		$repeatedNews = $newsManager->getNewsById($firstNews);
		$printer = ApplicationContext::getServices('printer');
		$printer->printNewsToCompare($news, $keyword, $repeatedNews);
		?>
		</div>
		<div style="display: block; clear: both;"></div>
	</div>
	<br />
</div>
